﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MASTER/Z16.Master" AutoEventWireup="true" CodeBehind="CalculadoraTeste.aspx.cs" Inherits="Z16.SITE.CalculadoraTeste" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <script type="text/javascript">

        function redirecionar() { window.location = "addCadTarefa.aspx"; } 
    
    </script>

    <div class="sucess" id="divSucess" runat="server" visible="false">
	    <asp:Label ID="lblMsg" runat="server"/>
    </div>

    <div class="error" id="divError" runat="server" visible="false">
	    Dados não puderam ser salvos.
        <asp:Label ID="lblErro" runat="server"/>
    </div>
    
       </br>
    </br>

    <div>
        <h3>CALCULAR ESTIMATIVA</h3>
    </div>
   
    <div>
        <table runat="server">
            <tr>
                <td>Camada :</td>
                <td>
                    <asp:DropDownList ID="ddlCamada" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>Complexidade :</td>
                <td>
                    <asp:DropDownList ID="ddlComplexidade" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>Quantidade:</td>
                <td>       
                            <asp:TextBox ID="txtValor" runat="server" s></asp:TextBox>
                 </td>
            </tr>
            <tr>
                <td colspan="3" style="text-align: right">
                     <asp:Button ID="btnADD" class= "botaoCadastro" runat="server" Text="Adicionar" OnClick="btnADD_Click" />
                 </td>
            </tr>
        </table>
    </div>
    
        </br>
        </br>

    <div>
        <table>
             <tr>
                 <td>
                     <asp:GridView ID="gvValores" runat="server" AutoGenerateColumns="False" GridLines="None" OnRowCommand="gvValores_RowCommand" Width="100%">
                         
                           <HeaderStyle BackColor="#000033" Font-Bold="True" ForeColor="White" />
                            <RowStyle BackColor="#EFF3FB" />

                                <AlternatingRowStyle CssClass="alt" />
                                <Columns>
                                    <asp:BoundField DataField="Cod_Camada" HeaderText="Camada" Visible="False">
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                    </asp:BoundField>
                                     <asp:BoundField DataField="Camada" HeaderText="Camada">
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Cod_Complexidade" HeaderText="Complexidade" Visible="False">
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Complexidade" HeaderText="Complexidade">
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                    </asp:BoundField>
                                      <asp:BoundField DataField="qtd" HeaderText="Quantidade">
                                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                    </asp:BoundField>
                                    <asp:TemplateField HeaderText="Opções">
                                        <ItemTemplate>
                                            <asp:Button class= "botaoCadastro" ID="btnExcluir" runat="server" CommandArgument='<%# Eval("Id") %>' CommandName="Excluir" Text="Excluir" OnClientClick="return window.confirm('Deseja excluir ?')" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <PagerStyle CssClass="pgr" />
                        </asp:GridView> 
                 </td>
             </tr>
        </table>
            
                          
    </div>
    
        </br>
        </br>

    <div>
            <table>
              <tr>
                        <td>
                            <asp:Button class= "botaoCadastro" ID="btnCalcular" runat="server" Text="Calcular" onclick="btnCalcular_Click"  />
                        </td>
                    </tr>

                 <tr>
                        <td>
                            Tempo Estimado:
                        </td>
                        <td>
                            <asp:TextBox ID="txtTotal" runat="server" Width="100px" ></asp:TextBox>
                        </td>
                    </tr>
               
             </table>
        </div>

</asp:Content>
